-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAYA-105368: set the edittarget to default into RootLayer instead of SessionLayer #661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. There's probably a balance to be struck here between defaulting to the root layer as the edit target and explicitly switching to the session layer when authoring data that you intend to be transient, versus defaulting to the session layer as the edit target and explicitly switching to the root layer when authoring data that you intend to be permanent. We'll probably just have to see as things progress whether one or the other makes more sense, both for the behavior in user workflows but also for developers building out those workflows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the failing regression tests.
# since currently UFE will author attribute values at default time which won't override | ||
# attributes with time sampled data. Switching to session layer allows such manipulation | ||
# to override time sampled data from root layer. | ||
stage.SetEditTarget(stage.GetSessionLayer()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kxl-adsk thanks for the patch that you gave me earlier.
self.assertEqual(stage.GetEditTarget().GetLayer(), stage.GetSessionLayer()) | ||
|
||
# set the edit target to the root layer | ||
stage.SetEditTarget(stage.GetRootLayer()) | ||
self.assertEqual(stage.GetEditTarget().GetLayer(), stage.GetRootLayer()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kxl-adsk merged in dev into my branch and fixed the parenting test failures accordingly.
No description provided.